<?php
return array(
	'attributeLabels' => array(
		'id' => 'ID',
		'name' => '旅行社名称',
		'image' => '图片',
		'province' => '地区',
		'city' => '市',
		'district' => '区',
		'address' => '详细地址',
		'desc' => '旅行社介绍',
	),
	
	'rules'=>array(
		array('name,image', 'required'),
		array('desc', 'safe'),
		array('name', 'length', 'max'=>90),
		array('address', 'length', 'max'=>150),
		array('image','file','allowEmpty'=>true,'types'=>'jpg,gif,png','maxSize'=>1024*1024*500),
	),
	
	'behaviors' => array(
		'fileSaver' => array(
			'class' => 'lib.behaviors.ar.CFileSaveBehavior',
			'baseUrl' => Yii::app()->baseUrl . '/uploaded',
			'basePath' => dirname(Yii::app()->basePath) . '/uploaded',
			'attributes' => array('image'),
		),
	),
	
	'_import' => array(
		array('*', 'models.ActiveRecord//*'),
	),
);